//
//  MFHomeViewController.swift
//  WWCWeibo
//
//  Created by 彭作青 on 2016/10/22.
//  Copyright © 2016年 彭作青. All rights reserved.
//

import UIKit

class MFHomeViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    }
    
	// MARK: - 搭建界面
    func setupUI() {
        // 右侧的item
        navigationItem.rightBarButtonItem = UIBarButtonItem(setHighlightedImageName: "navigationbar_friendsearch", title: nil, target: self, action: #selector(rightBtnClikc))
        // 左侧的item
        navigationItem.leftBarButtonItem = UIBarButtonItem(setHighlightedImageName: "navigationbar_pop", title: nil, target: self, action: #selector(leftBtnClikc))
    }
    
    // MARK: - 监听方法
    func rightBtnClikc() {
        let vc = MFTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
    func leftBtnClikc() {
        print("zuo")
    }
    
    func backBtnClick() {
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}
